home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Misc Servers / Zope.exe / FAQ.TXT < prev    next >
Encoding:
Text File  |  1999-08-05  |  7.8 KB  |  180 lines

  1. Zope Installation Frequently Asked Questions
  2. --------------------------------------------
  3.  
  4.   Installing Zope
  5.  
  6.     1. I am trying to build Zope on my BSD based system, but I
  7.        keep getting "symbol not found" errors and the build
  8.        scripts stop. What do I do?
  9.  
  10.        On some BSD based systems (BSDI, BSD/OS), you need to edit
  11.        the Makefile.pre.in files in your Zope installation to add
  12.        -rdynamic to the LDSHARED makefile variable. On some systems
  13.        it may also be necessary to change the file named 'do.py'
  14.        located in the 'inst' directory of your Zope installation,
  15.        changing the line: do('make')  to: do('make -k').
  16.  
  17.  
  18.     2. I am having trouble building Zope on a libc 5 Linux machine.
  19.     
  20.        Zope requires Python be built with glibc 2.x (libc 6) on Linux.
  21.        
  22.  
  23.   Starting/Accessing your Zope installation
  24.  
  25.     1. After installing Zope, I go to the URL in my web browser
  26.        but I get a "404 Not Found" or "Server Error" message
  27.  
  28.        This message is coming from your web server, not Zope.
  29.        It usually means that your web server is misconfigured.
  30.        Ensure that the PCGI info file generated by the installation
  31.        procedure exists in a cgi-enabled directory, and that your
  32.        web server has any required aliases or configuration options
  33.        set to enable it to find this file and run it as a cgi program.
  34.  
  35.        Look in the error log for your web server for details of the error.
  36.  
  37.  
  38.     2. I have installed Zope, and when I go to the URL in my web
  39.        browser, I get a password prompt. Although I type in the correct
  40.        username and password, I keep getting prompted. What is going on?
  41.  
  42.        Zope manages access control internally, but it relies on your
  43.        web server software to relay any authentication information in
  44.        web requests. Some web servers automatically filter this information
  45.        out of requests passed to cgi programs. If you keep getting password
  46.        prompts that never accept your password, this means that your web
  47.        server is not properly configured to pass authentication info on to
  48.        Zope. See the doc/WEBVSERVER.txt file for information on correctly
  49.        configuring your web server to pass authentication information.
  50.  
  51.  
  52.     3. I have installed Zope, and when I go to the URL in my web
  53.        browser, I get a screen that says "Temporarily Unavailable".
  54.  
  55.        Try the URL again - if you still get "Temporarily Unavailable",
  56.        this means that your PCGI resource file was unable to start
  57.        the Zope process. This usually means either an error in the
  58.        PCGI resource file, or a problem with your Zope installation
  59.        such as incorrect permissions on certain directories.
  60.  
  61.        You should always run the install script to ensure that a
  62.        correct PCGI resource file is generated. If you have changed
  63.        this file by hand, ensure that all of the pathnames in the file
  64.        are valid and that there are no typos.
  65.  
  66.        The install script should also ensure correct ownership and permissions
  67.        on files and directories in your Zope installation. The var
  68.        subdirectory of your installation and everything therein MUST be 
  69.        writable by the user which runs cgi scripts on your web server 
  70.        (usually nobody if you are using PCGI.)
  71.        
  72.        If you have ensured that the PCGI info file is correct and that all
  73.        permissions are correct, you can look in the /var/tmp directory of
  74.        your machine for files with names like "pcgi.110407". If PCGI fails
  75.        to start the Zope process, it will attempt to write a file
  76.        named pcgi.HHMMSS to /var/tmp containing information which may be
  77.        useful in determining the error.
  78.  
  79.        On Windows NT platforms, check the event log under "Application Log"
  80.        for error information.
  81.  
  82.        Additionally, if you receive a "Temporarily Unavailable", look at 
  83.        the document source for an HTML comment with error information.
  84.        
  85.  
  86.     4. When I go to a URL for an application that isn't running, it
  87.        takes quite a while to startup.  Why is that?
  88.  
  89.        The *PCGI wrapper*, which is the executable run as a CGI script
  90.        on every request, has quite a bit of thinking to do.  First, it
  91.        has to see if the app is already running.  If not, it has to see 
  92.        if any other PCGI wrappers have already started the app.  It is
  93.        this latter part where some of the delay presents itself.
  94.  
  95.        Next, the application itself has to get into memory and then get 
  96.        the database loaded.  Depending on database file size, this might
  97.        take a while. Packing your Zope database at regular intervals
  98.        can reduce startup time.
  99.  
  100.  
  101.     5. I have Zope with the Oracle Database adapter installed, and can't
  102.        get it running. Why?
  103.  
  104.        If you have Oracle installed, you need to ensure that the
  105.        environment variable "ORACLE_HOME" is in the environment of
  106.        the running application. You can do this by adding a line to 
  107.        your PCGI resource file such as: ORACLE_HOME=/usr/bin/oracle
  108.  
  109.        Any NAME=VALUE pairs appended to the PCGI resource file will
  110.        be added to the environment of the process when it is started
  111.        by PCGI.
  112.  
  113.  
  114.   Managing the Zope process
  115.  
  116.  
  117.     1. How do I find the application server in my process listing?
  118.  
  119.        Whether running Zope with ZServer (yay) or straight PCGI (not
  120.        so yay), there will be a .pid file in var with the pid of the
  121.        process.  For ZServer, the pid file is named 'z2.pid' (and it
  122.        contains two pids).  For PCGI, the file will be 'pcgi.pid'.
  123.  
  124.     2. If I have more than one Zope process running on the same
  125.        machine, how do I tell them apart in "ps" listings?
  126.  
  127.        When running under ZServer, the Zope processes will show up in
  128.        the listings with 'z2.py'.  (You may need to do a long listing
  129.        to see it.)  PCGI mastered zopes will have 'pcgi-wrapper'.
  130.  
  131.     3. What files are used by the object database?
  132.  
  133.        The state of the application is stored in files in the 'var'
  134.        subdirectory inside the installation.  There is currently one
  135.        file:
  136.  
  137.          o Data.fs -- Primary database file
  138.  
  139.        Data.fs replaces the database file of prior versions,
  140.        Data.bbb.  To convert an existing Data.bbb file to the new
  141.        format, see doc/ZODB.txt.
  142.  
  143.        Other files in the 'var' directory are associated with each
  144.        process and are only temporary.       
  145.  
  146.  
  147.     4. Is it OK to use 'kill' to shutdown the process?
  148.  
  149.        It is best to shutdown the process using the Shutdown button in
  150.        the Control Panel. Alternatively, the URL:
  151.  
  152.           'Control_Panel/manage_shutdown'
  153.  
  154.        will, with a suitable username and password, shutdown the
  155.        application. If you need a non-interactive way to shutdown your
  156.        application, e.g. from a script, then write a program that sends
  157.        a web request to that URL with the appropriate username and
  158.        password.
  159.  
  160.        If you must, you can shutdown the application by killing it.
  161.        The respective var/*.pid file will have the pids - for ZServer
  162.        (yay) it's var/z2.pid, for pcgi (not so yay), it's
  163.        var/pcgi.pid.
  164.  
  165.   General
  166.  
  167.  
  168.     1. My browser is giving a message of 'Sorry, an error occurred.'
  169.        How do I find out the error?
  170.  
  171.        Step number one in these scenarios is to view the HTML source of 
  172.        the frame containing the error. In general, the *traceback* of
  173.        the error message is enclosed in an HTML comment. This
  174.        traceback explains the error message.
  175.  
  176.        Occassionally you won't see the error message. Rather, the HTML 
  177.        source will contain the last good HTML returned by the request
  178.        before the error occurred. This is due to caching by the
  179.        browser. Clear your cache and view the HTML source again.
  180.